package com.zretc.dao;

import com.zretc.entity.ReplyComment;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 吴凯
 */
@Repository
public interface ReplyCommentMapper {
    /**
     * 根据一级评论编号查询子评论
     * @param commendsId 评论编号
     * @return
     */
    List<ReplyComment> findSubComentsByRootCommentId(String commendsId);

    /**
     * 回复根评论
     * @param replyComment
     * @return
     */
    Integer replyRootComment (ReplyComment replyComment);
}
